package com.xyht.medicine_management_system.modules.kuaidi.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 发货地址配置
 * </p>
 *
 * @author XYHT
 * @since 2024-07-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("mms_kuaidi_setting")
@ApiModel(value="MmsKuaidiSetting对象", description="发货地址配置")
public class MmsKuaidiSetting implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    @ApiModelProperty(value = "寄件名字")
    private String sendName;

    @ApiModelProperty(value = "寄件人手机号")
    private String sendTel;

    @ApiModelProperty(value = "寄件人地址")
    private String sendAddr;

    @ApiModelProperty(value = "配置是否开启  0：未开启  1：开启   有且只有一个地址开启")
    private Integer isOpen;

    @ApiModelProperty(value = "所在省")
    private String sendProvince;

    @ApiModelProperty(value = "所在市")
    private String sendCity;

    @ApiModelProperty(value = "所在区")
    private String sendArea;

    @ApiModelProperty(value = "所在村/镇")
    private String sendVillage;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "是否删除：0：未删除 1：已删除")
    @TableLogic
    private Integer isDeleted;

}
